<!--
	作者：2575202388@qq.com
	时间：2018-10-14
	描述：基础设置顶部
-->

<template>
	
	<div>
		<Nav title="基础设置" :list="navlist"></Nav>
		<Body>
			<router-view></router-view>
		</Body>
	</div>
</template>
<script>
	export default {
		name:"jcszead",
		data() {
			return {
				navlist:[
					/* {
						path:'/jcsz/imageset',
						name:"首页轮播页面"
					},{
						path:'/jcsz/jfych',
						name:"积分与称号"
					},{
						path:'/jcsz/poetryread',
						name:"诗词作业检查人员设置"
					},{
						path:'/jcsz/topimage',
						name:"顶部图片"
					}, */
					/* {
						path:'/jcsz/student',
						name:"学生管理"
					}, */
					
					{
						path:'/jcsz/uaccount',
						name:"账号管理"
					}
				]
			}
		},
		methods: {
		},
		components: {
		},
		computed: {
			user: function() {
				return this.$store.state.app.user;
			}
		},
		mounted() {
			console.log(this.user.uname);
			if(this.user.uname=='admin'){
				this.navlist=[
					{
						path:'/jcsz/imageset',
						name:"首页轮播页面"
					},{
						path:'/jcsz/jfych',
						name:"积分与称号"
					},{
						path:'/jcsz/poetryread',
						name:"诗词作业检查人员设置"
					},{
						path:'/jcsz/permission',
						name:"用户权限设置"
					},{
						path:'/jcsz/topimage',
						name:"环西顶部图片"
					},
					/* {
						path:'/jcsz/student',
						name:"学生管理"
					}, */
					{
						path:'/jcsz/uaccount',
						name:"账号管理"
					}
				]
			}
		},
		watch:{
		}
	}
</script>

<style>
</style>



